home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / misc / adhelp10.lha / ADHelp10 / Install ADHelp < prev    next >
Encoding:
Text File  |  1994-06-12  |  19.6 KB  |  830 lines

  1. ; Install script for ADHelp 1.0
  2. ; $VER: ADHelpInstallScript 1.0 (11.6.94)
  3.  
  4. ;*********
  5. ; Strings
  6. ;*********
  7.  
  8. (set #bad-kick
  9. (cat "You must be using Kickstart 2.04 or higher to install using this script!"
  10. ))
  11.  
  12. (set #copy-main "\n\n\n\n\nInstall ADHelp main program?")
  13. (set #copy-main-help
  14. (cat "\nThis will install the ADHelp main program (recommended)."
  15. ))
  16.  
  17. (set #install-msg
  18. (cat "Installation program for ADHelp V1.0\n"
  19. "The Autodoc&Include&more help utility for\n all editors with ARexx\n\n"
  20. "©1992-94 by Gerhard Müller. All rights reserved.\n\n"
  21. "(You have to install ADHelp in your Editor, too. Please look at the documentation!)\n"
  22. "\n\nADHelp is Shareware. Please register if you use ADHelp regulary!\n"
  23. ))
  24.  
  25. (set #copy-rexx
  26. (cat "Do you want to use supplied Arexx-Scripts?\n"
  27.      "(Scripts are available for EDGE, CygnusEd and GoldED)\n"
  28. ))
  29. (set #copy-rexx-help
  30. (cat "This will install the ARexx-scripts which are called\n"
  31.      "from your editor. You can choose as many as you want. "
  32.      "If your editor is not in this list, click on one entry,"
  33.      "modify it for your editor and send me your new arexx script"
  34. ))
  35.  
  36.  
  37. (set #generate-indexfile
  38. (cat "Do you want to generate an indexfile for ADHelp?\n"
  39.      "(This is necessary if you have not already an indexfile,"
  40.      " it is also necessary if you want to add ADHelp to your"
  41.      " user-startup)\n"
  42.      "You have to enter an absolute path name!\n"
  43.      "If you use GoldED, please look in the manual before you proceed!"
  44. ))
  45. (set #generate-indexfile-help
  46. (cat "This is recommended if you are using ADHelp the first time\n\n"
  47.      "The indexfile will contain all information from your includes, "
  48.      "autodocs etc.\n"
  49. ))
  50.  
  51. (set #indexfile-autodoc
  52. (cat "Do you want to generate the indexfile from your autodocs?\n"
  53.      "You have to enter an absolute path name!"
  54. ))
  55. (set #indexfile-autodoc-help
  56. (cat "This is recommended if you have Commodore's autodocs\n\n"
  57.      "All autodoc files have to end with ".doc", otherwise they will be skipped. "
  58.      "(This is useful if you have other files in your autodoc directory)\n"
  59. ))
  60.  
  61. (set #indexfile-include
  62. (cat "Do you want to generate the indexfile from your C-includes?\n"
  63.      "You have to enter an absolute path name!"
  64. ))
  65. (set #indexfile-include-help
  66. (cat "This is recommended if you have Commodore's C-include files. "
  67.      "All include files have to end with \".h\" or \".hP\", otherwise they won't be recognized."
  68. ))
  69.  
  70.  
  71. (set #indexfile-include-asm
  72. (cat "Do you want to generate the indexfile from your Assembler-includes?\n"
  73.      "You have to enter an absolute path name!"
  74. ))
  75. (set #indexfile-include-help-asm
  76. (cat "This is recommended if you have Commodore's Asm-include files. "
  77.      "You can set a pattern as filename, like asm-inc:#?/#?.i etc. "
  78.      "The default are all file, and all subdirectories are scanned."
  79.      "(Do not press enter if you use wildcards)\n"
  80. ))
  81.  
  82. (set #adduser
  83. (cat "Do you want to start ADHelp in your user-startup?\n"
  84.      "(This is not really necessary, as you can put ADHelp in your WBStartup-Drawer as well)\n"
  85. ))
  86. (set #adduser-help
  87. (cat "This will start ADHelp every time you start your computer\n"
  88.      "ADHelp uses some memory (without indexfile 50K), so it could be good to start it only if neccessary if you are short of memory. "
  89.      "You can easy put ADHelp in your sys:WBStartup-drawer, just move ADHelp in it."
  90. ))
  91.  
  92. (set #copy-GetOffsets
  93. (cat "Do you want to copy the files that generate the indexfile?\n"
  94. ))
  95. (set #copy-GetOffsets-help
  96. (cat "This is useful if you want to build your own indexfile "
  97.      "(perhaps if you want to add a new autodoc-file to the indexfile later)\n"
  98. ))
  99.  
  100. (set #install-documentation
  101. (cat "Do you want to install the supplied amigaguide-manual?\n"
  102. ))
  103. (set #install-documentation-help
  104. (cat "This is useful if you want to modify anything later, "
  105.      "also useful tips & hints are given in the manual.\n"
  106.      "You will also need the manual to install ADHelp in your editor.\n"
  107. ))
  108.  
  109. (set #indexfile-sclib
  110. (cat "If you have the SAS/C compiler 6.5x, you can build an indexfile from your sc_lib.guide-file. "
  111.      "With it you can look for functions like malloc(), variables like __stack etc. Do you want "
  112.      "an indexfile generated from your sc_lib.guide-file?\n"
  113.      "You have to enter an absolute path name!"
  114. ))
  115. (set #indexfile-sclib-help
  116. (cat "You can only use this if you have the sc_lib.guide-file. The sc_lib-guide-file is not "
  117.      "touched in any way. The help entries will have some AmigaGuide-strings in them."
  118. ))
  119.  
  120.  
  121. (set #indexfile-manpages
  122. (cat "If you have some manpages (perhaps you are using gcc), you can build an indexfile from these. "
  123.      "With them you can look for functions like malloc(), etc. Do you want "
  124.      "an indexfile generated from your manpages?\n"
  125. ))
  126. (set #indexfile-manpages-help
  127. (cat "You can only use this if you have some manpages. The manpages have to be in the same format "
  128.      "as the manpages that come along with gcc. The manpages have to be converted if you want to "
  129.      "use them, as some special chars for bold and unerlined have to be removed. You are asked "
  130.      "if you want to convert your manpages"
  131. ))
  132.  
  133.  
  134. (set #convert-manpages
  135. (cat "If you want to use manpages, you have to remove some special chars from them. "
  136.      "This can be done here. Do you want your manpages to be converted?\n"
  137. ))
  138. (set #convert-manpages-help
  139. (cat "If you do not convert your manpages, you won't be able to use them."
  140. ))
  141.  
  142. (set #copy-manpages
  143. (cat "Do you want your man pages copied to somewhere else before "
  144.      "they get converted? This is necessary if you like the bold and unerlined "
  145.      "characters when using \"man\".\n"
  146. ))
  147. (set #copy-manpages-help
  148. (cat "Your manpages will get modified, so copy them if you are in doubt."
  149. ))
  150.  
  151.  
  152. ;*******************************************
  153. ; make sure Kick 2.0 or higher is available
  154. ;*******************************************
  155.  
  156. (if (< (/ (getversion) 65536) 37)
  157. (
  158.     (abort #bad-kick)
  159. ))
  160.  
  161.  
  162. (message #install-msg)
  163.  
  164. (welcome)
  165.  
  166. ;*****************
  167. ; Install Program
  168. ;*****************
  169.  
  170. ; main prg
  171.  
  172.  
  173. (set oldlevel @user-level)
  174. (if (= oldlevel 0)
  175.     (user 1)
  176. )
  177.  
  178. (set adhelp-dir
  179.     (askdir
  180.         (prompt "Please select directory where to store ADHelp:\n(Please create a new drawer if wanted)\n"
  181.         )
  182.         (help @askdir-help)
  183.         (default (tackon @default-dest "ADHelp"))
  184.         (newpath)
  185.     )
  186. )
  187.  
  188. (set @default-dest adhelp-dir)
  189.  
  190. (user oldlevel)
  191.  
  192. (if
  193.     (askbool
  194.         (prompt #copy-main)
  195.         (help #copy-main-help)
  196.         (default 1)
  197.     )
  198.     (
  199.         (copyfiles
  200.             (prompt "Installing ADHelp...")
  201.             (source "ADHelp")
  202.             (help #copy-main-help)
  203.             (dest @default-dest)
  204.             (infos)
  205.         )
  206.     )
  207. )
  208.  
  209.  
  210. ; rexx-scripts
  211.  
  212. (if
  213.     (askbool
  214.         (prompt #copy-rexx)
  215.         (help #copy-rexx-help)
  216.         (default 1)
  217.     )
  218.     (
  219.         (set @default-destrexx
  220.             (askdir
  221.                 (prompt "Please select a drawer for ADHelp-Arexx-Scripts:\n(Please create one if neccessary)"
  222.                 )
  223.                 (help @askdir-help)
  224.                 (default (tackon @default-dest "rexx"))
  225.                 (newpath)
  226.             )
  227.         )
  228.  
  229.         (SET rexxs
  230.             (ASKOPTIONS
  231.                  (PROMPT "Which editor(s) are you using?")
  232.                  (HELP "Here you define which Arexx-scripts to copy")
  233.                    (CHOICES "EDGE"
  234.                           "CygnusEd"
  235.                           "GoldEd")))
  236.  
  237.         (SET n 0)
  238.  
  239.         (WHILE
  240.          (SET file
  241.             (SELECT n "rexx/ADHelp.edge"
  242.                       "rexx/ADHelp.ced"
  243.                       "rexx/ADHelp.ged"
  244.                       ""
  245.             )
  246.          )
  247.  
  248.          (IF (IN rexxs n)
  249.             (
  250.             (IF (= n 2)
  251.                 (copyfiles
  252.                     (prompt "Copying ARexx-files...")
  253.                     (source "rexx/ADHelpAsk.ged")
  254.                     (help #copy-rexx-help)
  255.                     (dest @default-destrexx)
  256.                  )
  257.              )
  258.  
  259.             (copyfiles
  260.                 (prompt "Copying ARexx-files...")
  261.                 (source file)
  262.                 (help #copy-rexx-help)
  263.                 (dest @default-destrexx)
  264.             )
  265.             )
  266.          )
  267.  
  268.  
  269.  
  270.          (SET n (+ n 1))
  271.         )
  272.  
  273.     )
  274. )
  275.  
  276.  
  277. ; ask name of indexfile
  278.  
  279. (if
  280.     (askbool
  281.         (prompt #generate-indexfile)
  282.         (help #generate-indexfile-help)
  283.         (default 1)
  284.     )
  285.     (
  286.  
  287.         (set indexfiledest
  288.             (askfile
  289.                 (prompt "Please select name of indexfile:\nYou have to enter an absolute path name!")
  290.                 (help #generate-indexfile-help)
  291.                 (default (tackon @default-dest "ADHelp.index"))
  292.             )
  293.         )
  294.  
  295.  
  296.         ; build indexfile autodocs
  297.  
  298. ;        (if
  299. ;            (askbool
  300. ;                (prompt #indexfile-autodoc)
  301. ;                (help #indexfile-autodoc-help)
  302. ;                (default 1)
  303. ;            )
  304.             (
  305.  
  306.                 ; we HAVE to know the path to the autodocs
  307.  
  308.                 (set oldlevel @user-level)
  309.                 (if (= oldlevel 0)
  310.                     (user 2)
  311.                 )
  312.  
  313.                 (set indexfiledocdir
  314.                     (askdir
  315.                         (prompt "Please select your directory with\n"
  316.                                 "Commodore's autodoc-files:\n"
  317.                         )
  318.                         (help #indexfile-autodoc-help)
  319.                         (default "AUTODOCS:")
  320.                     )
  321.                 )
  322.  
  323.                 (user oldlevel)
  324.  
  325.                 ; generate indexfile
  326.  
  327.                 (working "\n\n\n\nPlease be patient... Working...")
  328.  
  329.                 (RUN
  330.                     (CAT "GetAutodocOffsets " indexfiledocdir " >" indexfiledest
  331.                     )
  332.                 )
  333.  
  334.             )
  335. ;        )
  336.  
  337.         ; build indexfile includes
  338.  
  339.         (set oldlevel @user-level)
  340.         (if (= oldlevel 0)
  341.             (user 1)
  342.         )
  343.  
  344.         (if
  345.             (askbool
  346.                 (prompt "Do you program in C or Assembler?")
  347.                 (help "Here you can define which include files are scanned: the C or Assembler-includefiles")
  348.                 (choices "  C  " "Assembler")
  349.                 (default 1)
  350.             )
  351.             (
  352.  
  353.                 ; we HAVE to know the path to the C-includes
  354.  
  355.                 (set indexfileincdir
  356.                     (askdir
  357.                         (prompt "Please select your directory with "
  358.                                 "your (and perhaps Commodore's) C-include-files:\n"
  359.                         )
  360.                         (help #indexfile-include-help)
  361.                         (default "INCLUDE:")
  362.                     )
  363.                 )
  364.  
  365.                 ; generate indexfile
  366.  
  367.                 (working "\n\n\n\nPlease be patient... Working...")
  368.  
  369.                 ; we create temporry file as GetIncludeStructsoffset needs more stack
  370.  
  371. ;                (RUN "echo >T:ADTempInstall Stack 20000")
  372. ;                (RUN "echo >>T:ADTempInstall" (CAT "GetIncludeStructsOffsets " indexfileincdir " >>" indexfiledest) )
  373. ;                (Execute "T:ADTempInstall")
  374. ;                (Delete "T:ADTempInstall")
  375.  
  376.                 (RUN
  377.                     (CAT "GetIncludeStructsOffsets " indexfileincdir " >>" indexfiledest)
  378.                 )
  379.  
  380.             )
  381.  
  382.             (
  383.                 ; we HAVE to know the path to the Asm-includes
  384.  
  385.                 (set indexfileincdir
  386.                     (askdir
  387.                         (prompt "Please select your directory with\n"
  388.                                 "Commodore's Assembler-include-files:\n"
  389.                         )
  390.                         (help #indexfile-include-help-asm)
  391.                         (default "ASM-INCLUDE:")
  392.                     )
  393.                 )
  394.  
  395.                 ; generate indexfile
  396.  
  397.                 (working "\n\n\n\nPlease be patient... Working...")
  398.  
  399.                 (RUN
  400.                     (CAT "GetAsmIncludeIndex " indexfileincdir " >>" indexfiledest)
  401.                 )
  402.             )
  403.         )
  404.  
  405.  
  406. ;        (set oldlevel @user-level)
  407. ;        (if (= oldlevel 0)
  408. ;            (user 1)
  409. ;        )
  410.  
  411.         (if
  412.             (askbool
  413.                 (prompt #indexfile-sclib)
  414.                 (help #indexfile-sclib-help)
  415.                 (default 1)
  416.             )
  417.             (
  418.  
  419.                 ; we HAVE to know the path to the guide file
  420.  
  421.                 (set indexfilesclib
  422.                     (askfile
  423.                         (prompt "Please select your sc_lib.guide-file:\n"
  424.                         )
  425.                         (help @indexfile-sclib-help)
  426.                         (default "sc:help/sc_lib.guide")
  427.                     )
  428.                 )
  429.  
  430.                 ; generate indexfile
  431.  
  432.                 (working "\n\n\n\nPlease be patient... Working...")
  433.  
  434.                 (RUN
  435.                     (CAT "GetSCLibOffsets " indexfilesclib " >>" indexfiledest)
  436.                 )
  437.  
  438.             )
  439.         )
  440.  
  441.         (if
  442.             (askbool
  443.                 (prompt #indexfile-manpages)
  444.                 (help #indexfile-manpages-help)
  445.                 (default 0)
  446.             )
  447.             (
  448.  
  449.                 (set manpagesdest "")
  450.                 (set gotmanpagedir 0)
  451.  
  452.                 (if
  453.                     (askbool
  454.                         (prompt #convert-manpages)
  455.                         (help #convert-manpages-help)
  456.                         (default 1)
  457.                     )
  458.                     (
  459.  
  460.                         (if
  461.                             (askbool
  462.                             (prompt #copy-manpages)
  463.                             (help #copy-manpages-help)
  464.                             (default 1)
  465.                             )
  466.                             (
  467.  
  468.                                 ; copy manpages to other place
  469.  
  470.                                 (set manpagessource
  471.                                     (askdir
  472.                                         (prompt "Please select your manpages source directory:\n"
  473.                                         )
  474.                                         (help #convert-manpages-help)
  475.                                         (default "gcc:man")
  476.                                     )
  477.                                 )
  478.  
  479.                                 (set manpagesdest
  480.                                     (askdir
  481.                                         (prompt "Please select your manpages destination directory:\n(please create one if necessary)\n"
  482.                                         )
  483.                                         (help #convert-manpages-help)
  484.                                         (default "gcc:man2")
  485.                                     )
  486.                                 )
  487.  
  488.  
  489.                                 (set gotmanpagedir 1)
  490.  
  491.                                 (copyfiles
  492.                                     (prompt "copying man-pages...")
  493.                                     (source manpagessource)
  494.                                     (help #convert-manpages-help)
  495.                                     (dest manpagesdest)
  496.                                     (all)
  497.                                 )
  498.                             )
  499.                         )
  500.  
  501.  
  502.                         (if (= gotmanpagedir 0)
  503.                             (set manpagesdest
  504.                                 (askdir
  505.                                     (prompt "Please select your manpages directory:\n"
  506.                                 )
  507.                                     (help #convert-manpages-help)
  508.                                     (default "gcc:man2")
  509.                                 )
  510.                             )
  511.                         )
  512.  
  513.  
  514.                         ; convert manpages
  515.  
  516.                         (working "\n\n\n\nPlease be patient... Converting manpages...")
  517.  
  518.                         (RUN
  519.                             (CAT "RemoveAnsiFromManpages " manpagesdest)
  520.                         )
  521.                     )
  522.                 )
  523.  
  524.  
  525.                 (if (= gotmanpagedir 0)
  526.                     (set manpagesdest
  527.                         (askdir
  528.                             (prompt "Please select your manpages directory:\n\n"
  529.                             )
  530.                             (help #convert-manpages-help)
  531.                             (default "gcc:man2")
  532.                         )
  533.                     )
  534.                 )
  535.  
  536.  
  537.                 ; generate indexfile
  538.  
  539.                 (working "\n\n\n\nPlease be patient... Generating indexfile...")
  540.  
  541.                 (RUN
  542.                     (CAT "GetManPagesOffsets " manpagesdest " >>" indexfiledest)
  543.                 )
  544.  
  545.             )
  546.         )
  547.  
  548.  
  549.         (user oldlevel)
  550.  
  551.         ; ask for startup options
  552.  
  553.         (SET startup-opts
  554.             (ASKOPTIONS
  555.                  (PROMPT "Here you can set some options on ADHelp start (please read the manual for full list of optins):\n")
  556.                  (HELP (CAT "Load indexfile only if neccessary\n\n(RELOAD) "
  557.                             "This is useful if you are short of memory and have a hard disk.\n"
  558.                             "The indexfile is loaded only if necessary. After each search operation "
  559.                             "the indexfile is flushed out of memory. Use this option only under "
  560.                             "OS 2.04 - 2.1, as unter V39 (OS3.0) and above a low memory handler is "
  561.                             "installed that flushes the indexfile automatically if the OS needs more memory.\n\n"
  562.                             "on unsuccessful search try again with *A added\n\n(ADD_A) "
  563.                             "If a search is unsuccessful, add *A to the search string and try again. "
  564.                             "This is useful as some entries are only with the added A in the autodoc "
  565.                             "files like CallHookA() etc.\n\n"
  566.                             "do case insensitive search\n\n(NOMINDCASE) Do case insensitive "
  567.                             "searches (default is case sensitive)\n\n"
  568.                             "can read XPK-packed help files\n\n(XPK) "
  569.                             "select this option if you are going to use xpk-packed autodoc, include "
  570.                             "or other help files. Please select this only if you are really use xpk-packed files, "
  571.                             "as this slows down ADHelp a little bit also with uncrunched help files.\n\n"
  572.                             "There are some more options available - please look in the documentation for them\n"
  573.                        )
  574.                  )
  575.                  (DEFAULT 0)
  576.                    (CHOICES "load indexfile only if neccessary"
  577.                           "on unsuccessful search try again with *A added"
  578.                           "do case insensitive searches"
  579.                           "can read XPK-packed help files"
  580.                                     )))
  581.  
  582.         (tooltype
  583.             (dest (TACKON @default-dest "ADHelp"))
  584.             (settooltype "DONOTWAIT" "")
  585.         )
  586.  
  587.         (tooltype
  588.                 (dest (TACKON @default-dest "ADHelp"))
  589.                 (settooltype "INDEXFILE" indexfiledest)
  590.         )
  591.  
  592.         (tooltype
  593.             (dest (TACKON @default-dest "ADHelp"))
  594.             (settooltype "CURRENTDIR" indexfiledocdir)
  595.         )
  596.  
  597.         (set clioptions " ")
  598.  
  599.         (SET n 0)
  600.  
  601.         (WHILE
  602.          (SET s-opt
  603.             (SELECT n "RELOAD"
  604.                       "ADD_A"
  605.                       "NOMINDCASE"
  606.                       "XPK"
  607.                       ""
  608.             )
  609.          )
  610.  
  611.          (IF (IN startup-opts n)
  612.             (
  613.                 (tooltype
  614.                        (dest (TACKON @default-dest "ADHelp"))
  615.                      (settooltype s-opt "")
  616.                 )
  617.                 (set clioptions (cat clioptions " " s-opt))
  618.             )
  619.             (
  620.                 ; put other tool types in brackets
  621.                 (tooltype
  622.                        (dest (TACKON @default-dest "ADHelp"))
  623.                      (settooltype (cat "(" s-opt ")") "")
  624.                 )
  625.             )
  626.          )
  627.  
  628.          (SET n (+ n 1))
  629.         )
  630.  
  631.  
  632.         (tooltype
  633.             (dest (TACKON @default-dest "ADHelp"))
  634.             (settooltype "(PORTNAME=ADHELP)" "")
  635.         )
  636.  
  637.         (tooltype
  638.             (dest (TACKON @default-dest "ADHelp"))
  639.             (settooltype "(NONICEHELP=\", (){}|:<>\")" "")
  640.         )
  641.  
  642.         (tooltype
  643.             (dest (TACKON @default-dest "ADHelp"))
  644.             (settooltype "(WILDMINDNOCASE)" "")
  645.         )
  646.  
  647.  
  648.         (tooltype
  649.             (dest (TACKON @default-dest "ADHelp"))
  650.             (settooltype "(NOMEMHANDLER)" "")
  651.         )
  652.  
  653.         (tooltype
  654.             (dest (TACKON @default-dest "ADHelp"))
  655.             (settooltype "(TEMPFILE=T:ADHelp.temp)" "")
  656.         )
  657.  
  658.  
  659.  
  660.         ; add line to user-startup
  661.  
  662.         (if
  663.             (askbool
  664.                 (prompt #adduser)
  665.                 (help #adduser-help)
  666.                 (default 1)
  667.             )
  668.             (
  669.                 (STARTUP "ADHelp"
  670.                     (PROMPT "Sure to modify user-startup?")
  671.                     (HELP #adduser-help)
  672.                     (COMMAND
  673.                       (CAT "run >NIL: <NIL: " (TACKON @default-dest "ADHelp") " " indexfiledest " " clioptions)
  674.                     )
  675.                 )
  676.             )
  677.         )
  678.     )
  679. )
  680.  
  681.  
  682. ; copy GetIncludeStr... etc. ?
  683.  
  684. (if
  685.     (askbool
  686.         (prompt #copy-GetOffsets)
  687.         (help #copy-GetOffsets-help)
  688.         (default 1)
  689.     )
  690.     (
  691.         (set getoffsdir
  692.             (askdir
  693.                 (prompt "Please select a drawer for the commands\n"
  694.                         "that can build an indexfile\n"
  695.                 )
  696.                 (help @askdir-help)
  697.                 (default @default-dest)
  698.                 (newpath)
  699.             )
  700.         )
  701.  
  702.         (copyfiles
  703.             (prompt "copying files...")
  704.             (source "GetAutodocOffsets")
  705.             (help #copy-GetOffs-help)
  706.             (dest getoffsdir)
  707.         )
  708.         (copyfiles
  709.             (prompt "copying files...")
  710.             (source "GetIncludeStructsOffsets")
  711.             (help #copy-GetOffs-help)
  712.             (dest getoffsdir)
  713.         )
  714.         (copyfiles
  715.             (prompt "copying files...")
  716.             (source "GetAsmIncludeIndex")
  717.             (help #copy-GetOffs-help)
  718.             (dest getoffsdir)
  719.         )
  720.         (copyfiles
  721.             (prompt "copying files...")
  722.             (source "GetSCLibOffsets")
  723.             (help #copy-GetOffs-help)
  724.             (dest getoffsdir)
  725.         )
  726.         (copyfiles
  727.             (prompt "copying files...")
  728.             (source "RemoveAnsiFromManpages")
  729.             (help #copy-GetOffs-help)
  730.             (dest getoffsdir)
  731.         )
  732.         (copyfiles
  733.             (prompt "copying files...")
  734.             (source "GetManPagesOffsets")
  735.             (help #copy-GetOffs-help)
  736.             (dest getoffsdir)
  737.         )
  738.     )
  739. )
  740.  
  741.  
  742. ; Install documentation
  743.  
  744. ;***********************
  745. ; Install Documentation
  746. ;***********************
  747.  
  748. (if
  749.     (askbool
  750.         (prompt #install-documentation)
  751.         (help #install-documentation-help)
  752.         (default 1)
  753.     )
  754.     (
  755.  
  756.     (set guidedest
  757.         (askdir
  758.             (prompt "Please select a drawer for ADHelp's\n"
  759.                 "AmigaGuide documentation:")
  760.             (help @askdir-help)
  761.             (default @default-dest)
  762.             (newpath)
  763.         )
  764.     )
  765.  
  766.     (copyfiles
  767.         (prompt "Installing Documentation...")
  768.         (source "ADHelp.guide")
  769.         (infos)
  770.         (noposition)
  771.         (help #copyguide-help)
  772.         (dest guidedest)
  773.     )
  774.  
  775.  
  776.     (if (>= (/ (getversion) 65536) 39)
  777.         (tooltype
  778.             (dest (tackon guidedest "ADHelp.guide"))
  779.             (setdefaulttool "SYS:Utilities/MultiView")
  780.         )
  781.         (tooltype
  782.             (dest (tackon guidedest "ADHelp.guide"))
  783.             (setdefaulttool "SYS:Utilities/AmigaGuide")
  784.         )
  785.     )
  786.  
  787.     )
  788. )
  789.  
  790.  
  791. ;***********************
  792. ; Register
  793. ;***********************
  794.  
  795. (if
  796.     (askbool
  797.         (prompt "Do you want to register ADHelp immediately?\n\n(This will print the registration form to prt:, you can also fill in the registration form later and send it to me via email)")
  798.         (help (CAT
  799. "Do me a favour and register ADHelp. It took many months of hard work to "
  800. "create this program of this level of perfection you see in front of you "
  801. "now. Read the file \"Registration_Form\" for further information. "
  802. "Additionally, if you register you get a keyfile which prevents the "
  803. "\"Shareware reminder\"-requester to pop up.\n\n"
  804. "ADHelp does not cost much. Please send me 15 DM (or US $10) if you want to "
  805. "get a keyfile via email. I know, email is not so save, but it is cheaper "
  806. "for you and me, as you don't have to pay for a disk and the postage. If "
  807. "you want your keyfile not via email, please add DM 5 or US $4, and I will "
  808. "send you your keyfile with ADHelp on a disk.\n"
  809. "\n"
  810. "Special prices are available for more than one keyfile:\n"
  811. "\n"
  812. "  3             keyfiles ........ 13DM (or $9) each\n"
  813. "  4 or 5        keyfiles ........ 11DM (or $8) each\n"
  814. "  10 (and more) keyfiles ........ 10DM (or $7) each\n"
  815. "\n"
  816. "If you want your keyfiles on disk, you of course only have to pay once for "
  817. "the disk and the postage." ))
  818.         (default 0)
  819.     )
  820.     (
  821.  
  822.         (RUN
  823.             "copy Registration_form to prt:"
  824.         )
  825.  
  826.  
  827.     )
  828. )
  829.  
  830.